<script type="text/javascript">
	
function NumberOf1(n)
{
    let res = n&(n-1)
    console.log(res)
}

const res = NumberOf1(-1)
console.log(res)

</script>